package com.easywb.springboot.controller.business;

import com.easywb.api.GetUserCenter;
import com.easywb.format.Format;
import com.easywb.springboot.aop.Release;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class Tsadad extends Format {
    @Autowired
    private GetUserCenter tsasasaas;

    @Release
    @HystrixCommand(fallbackMethod = "eck")
    @RequestMapping("/testssss")
    public String getTest() {
        return  tsasasaas.getTest();
    }

}
